home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / otohime / src / iothed.c < prev    next >
C/C++ Source or Header  |  1994-11-16  |  11KB  |  470 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    headDialogId ;
  9. extern int    headSubDialogId ;
  10. extern int    headNumId[6] ;
  11. extern int    headMesId[13] ;
  12. extern int    headOkBtnId ;
  13. extern int    headOkchk() ;
  14. extern int    headPlayBtnId ;
  15. extern int    headPlay() ;
  16. extern int    headUndoBtnId ;
  17. extern int    headUndo() ;
  18. extern int    headCanBtnId ;
  19. extern int    headCanchk() ;
  20. extern int    headInfBtnId ;
  21. extern int    headInf() ;
  22.  
  23. #define ALIGN    4
  24. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  25.  
  26. /*    MMI_init 用データ    */
  27.  
  28. /*    ヘッダ    */
  29.  
  30. MMIINIT    initDataIOTHED = { "MmiInit",  26, 0 } ;
  31.  
  32. /* headDialogId */
  33.  
  34. static MMIPACKET d001 = {    &headDialogId,
  35.                             NULL,
  36.                             &MJ_DIALOGL40,
  37.                             OFFSET(DIALOGL40),
  38.                             MS_NONE
  39.                         } ;
  40. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  41.                              124,  92, 516, 388, 8, 4, 8,
  42.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  43.                             NULL,   0,   0
  44.                         } ;
  45.  
  46. /* headSubDialogId */
  47.  
  48. static MMIPACKET d002 = {    &headSubDialogId,
  49.                             &headDialogId,
  50.                             &MJ_DIALOGL40,
  51.                             OFFSET(DIALOGL40),
  52.                             MS_NONE
  53.                         } ;
  54. static DIALOGL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  55.                              144, 118, 497, 353, 8, 4, 8,
  56.                             MS_DFRAMEL40 | MS_FRAMEL40,
  57.                             NULL,   0,   0
  58.                         } ;
  59.  
  60. /* headNumId[0] */
  61.  
  62. static MMIPACKET d003 = {    &headNumId[0],
  63.                             &headSubDialogId,
  64.                             &MJ_NUMBOXL40,
  65.                             OFFSET(NUMBOXL40),
  66.                             MS_NONE
  67.                         } ;
  68. static NUMBOXL40    d003d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  69.                              341, 134, 414, 157, 8, 4, 8,
  70.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  71.                             0,
  72.                                1,  12,  12,
  73.                             MS_NONEL40,
  74.                                0,   0,
  75.                                0,   0,9999,   1,   0,
  76.                              263, 264
  77.                         } ;
  78.  
  79. /* headNumId[1] */
  80.  
  81. static MMIPACKET d004 = {    &headNumId[1],
  82.                             &headSubDialogId,
  83.                             &MJ_NUMBOXL40,
  84.                             OFFSET(NUMBOXL40),
  85.                             MS_NONE
  86.                         } ;
  87. static NUMBOXL40    d004d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  88.                              341, 170, 414, 193, 8, 4, 8,
  89.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  90.                             0,
  91.                                1,  12,  12,
  92.                             MS_NONEL40,
  93.                                0,   0,
  94.                                0,   0,9999,   1,   0,
  95.                              263, 264
  96.                         } ;
  97.  
  98. /* headNumId[2] */
  99.  
  100. static MMIPACKET d005 = {    &headNumId[2],
  101.                             &headSubDialogId,
  102.                             &MJ_NUMBOXL40,
  103.                             OFFSET(NUMBOXL40),
  104.                             MS_NONE
  105.                         } ;
  106. static NUMBOXL40    d005d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  107.                              341, 206, 414, 229, 8, 4, 8,
  108.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  109.                             0,
  110.                                1,  12,  12,
  111.                             MS_NONEL40,
  112.                                0,   0,
  113.                                0,   0,9999,   1,   0,
  114.                              263, 264
  115.                         } ;
  116.  
  117. /* headNumId[3] */
  118.  
  119. static MMIPACKET d006 = {    &headNumId[3],
  120.                             &headSubDialogId,
  121.                             &MJ_NUMBOXL40,
  122.                             OFFSET(NUMBOXL40),
  123.                             MS_NONE
  124.                         } ;
  125. static NUMBOXL40    d006d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  126.                              341, 242, 414, 265, 8, 4, 8,
  127.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  128.                             0,
  129.                                1,  12,  12,
  130.                             MS_NONEL40,
  131.                                0,   0,
  132.                                0,   0,9999,   1,   0,
  133.                              263, 264
  134.                         } ;
  135.  
  136. /* headNumId[4] */
  137.  
  138. static MMIPACKET d007 = {    &headNumId[4],
  139.                             &headSubDialogId,
  140.                             &MJ_NUMBOXL40,
  141.                             OFFSET(NUMBOXL40),
  142.                             MS_NONE
  143.                         } ;
  144. static NUMBOXL40    d007d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  145.                              341, 278, 414, 301, 8, 4, 8,
  146.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  147.                             0,
  148.                                1,  12,  12,
  149.                             MS_NONEL40,
  150.                                0,   0,
  151.                                0,   0,9999,   1,   0,
  152.                              263, 264
  153.                         } ;
  154.  
  155. /* headNumId[5] */
  156.  
  157. static MMIPACKET d008 = {    &headNumId[5],
  158.                             &headSubDialogId,
  159.                             &MJ_NUMBOXL40,
  160.                             OFFSET(NUMBOXL40),
  161.                             MS_NONE
  162.                         } ;
  163. static NUMBOXL40    d008d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  164.                              341, 314, 414, 337, 8, 4, 8,
  165.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  166.                             0,
  167.                                1,  12,  12,
  168.                             MS_NONEL40,
  169.                                0,   0,
  170.                                0,   0,9999,   1,   0,
  171.                              263, 264
  172.                         } ;
  173.  
  174. /* headMesId[10] */
  175.  
  176. static MMIPACKET d009 = {    &headMesId[10],
  177.                             &headSubDialogId,
  178.                             &MJ_MSGL40,
  179.                             OFFSET(MSGL40),
  180.                             MS_NONE
  181.                         } ;
  182. static MSGL40    d009d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  183.                              224, 281, 317, 298, 0,15, 8,
  184.                             MS_NONEL40,
  185.                             "原音の補正値",
  186.                                1,  12,  12,
  187.                             MS_NONEL40,
  188.                                0,   0
  189.                         } ;
  190.  
  191. /* headMesId[9] */
  192.  
  193. static MMIPACKET d010 = {    &headMesId[9],
  194.                             &headSubDialogId,
  195.                             &MJ_MSGL40,
  196.                             OFFSET(MSGL40),
  197.                             MS_NONE
  198.                         } ;
  199. static MSGL40    d010d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  200.                              224, 238, 334, 255, 0,15, 8,
  201.                             MS_NONEL40,
  202.                             "サンプリングレート",
  203.                                1,  12,  12,
  204.                             MS_NONEL40,
  205.                                0,   0
  206.                         } ;
  207.  
  208. /* headMesId[8] */
  209.  
  210. static MMIPACKET d011 = {    &headMesId[8],
  211.                             &headSubDialogId,
  212.                             &MJ_MSGL40,
  213.                             OFFSET(MSGL40),
  214.                             MS_NONE
  215.                         } ;
  216. static MSGL40    d011d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  217.                              224, 209, 317, 226, 0,15, 8,
  218.                             MS_NONEL40,
  219.                             "ループレングス",
  220.                                1,  12,  12,
  221.                             MS_NONEL40,
  222.                                0,   0
  223.                         } ;
  224.  
  225. /* headMesId[7] */
  226.  
  227. static MMIPACKET d012 = {    &headMesId[7],
  228.                             &headSubDialogId,
  229.                             &MJ_MSGL40,
  230.                             OFFSET(MSGL40),
  231.                             MS_NONE
  232.                         } ;
  233. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  234.                              224, 173, 317, 190, 0,15, 8,
  235.                             MS_NONEL40,
  236.                             "ループポイント",
  237.                                1,  12,  12,
  238.                             MS_NONEL40,
  239.                                0,   0
  240.                         } ;
  241.  
  242. /* headMesId[11] */
  243.  
  244. static MMIPACKET d013 = {    &headMesId[11],
  245.                             &headSubDialogId,
  246.                             &MJ_MSGL40,
  247.                             OFFSET(MSGL40),
  248.                             MS_NONE
  249.                         } ;
  250. static MSGL40    d013d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  251.                              224, 317, 317, 334, 0,15, 8,
  252.                             MS_NONEL40,
  253.                             "原音の音階",
  254.                                1,  12,  12,
  255.                             MS_NONEL40,
  256.                                0,   0
  257.                         } ;
  258.  
  259. /* headMesId[6] */
  260.  
  261. static MMIPACKET d014 = {    &headMesId[6],
  262.                             &headSubDialogId,
  263.                             &MJ_MSGL40,
  264.                             OFFSET(MSGL40),
  265.                             MS_NONE
  266.                         } ;
  267. static MSGL40    d014d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  268.                              224, 137, 317, 154, 0,15, 8,
  269.                             MS_NONEL40,
  270.                             "データ幅",
  271.                                1,  12,  12,
  272.                             MS_NONEL40,
  273.                                0,   0
  274.                         } ;
  275.  
  276. /* headMesId[12] */
  277.  
  278. static MMIPACKET d015 = {    &headMesId[12],
  279.                             &headSubDialogId,
  280.                             &MJ_MSGL40,
  281.                             OFFSET(MSGL40),
  282.                             MS_NONE
  283.                         } ;
  284. static MSGL40    d015d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  285.                              220, 253, 330, 270, 0,15, 8,
  286.                             MS_NONEL40,
  287.                             "(周波数(KHz)×98)",
  288.                                1,  12,  12,
  289.                             MS_NONEL40,
  290.                                0,   0
  291.                         } ;
  292.  
  293. /* headMesId[5] */
  294.  
  295. static MMIPACKET d016 = {    &headMesId[5],
  296.                             &headDialogId,
  297.                             &MJ_MSGL40,
  298.                             OFFSET(MSGL40),
  299.                             MS_NONE
  300.                         } ;
  301. static MSGL40    d016d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  302.                              151,  95, 313, 114, 8,15, 8,
  303.                             MS_NONEL40,
  304.                             "ヘッダの書き換え",
  305.                                1,  12,  12,
  306.                             MS_BOLDL40,
  307.                                0,   0
  308.                         } ;
  309.  
  310. /* headOkBtnId */
  311.  
  312. static MMIPACKET d017 = {    &headOkBtnId,
  313.                             &headDialogId,
  314.                             &MJ_DBUTTONL40,
  315.                             OFFSET(DBUTTONL40),
  316.                             MS_NONE
  317.                         } ;
  318. static DBUTTONL40    d017d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  319.                              144, 358, 205, 381,12, 4, 8,
  320.                             MS_PANELL40 | MS_FRAMEL40,
  321.                             headOkchk,
  322.                             0x0000
  323.                         } ;
  324.  
  325. /* headPlayBtnId */
  326.  
  327. static MMIPACKET d018 = {    &headPlayBtnId,
  328.                             &headDialogId,
  329.                             &MJ_DBUTTONL40,
  330.                             OFFSET(DBUTTONL40),
  331.                             MS_NONE
  332.                         } ;
  333. static DBUTTONL40    d018d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  334.                              214, 358, 275, 381, 7, 4, 8,
  335.                             MS_PANELL40 | MS_FRAMEL40,
  336.                             headPlay,
  337.                             0x0000
  338.                         } ;
  339.  
  340. /* headUndoBtnId */
  341.  
  342. static MMIPACKET d019 = {    &headUndoBtnId,
  343.                             &headDialogId,
  344.                             &MJ_DBUTTONL40,
  345.                             OFFSET(DBUTTONL40),
  346.                             MS_NONE
  347.                         } ;
  348. static DBUTTONL40    d019d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  349.                              284, 358, 345, 381, 7, 4, 8,
  350.                             MS_PANELL40 | MS_FRAMEL40,
  351.                             headUndo,
  352.                             0x0000
  353.                         } ;
  354.  
  355. /* headCanBtnId */
  356.  
  357. static MMIPACKET d020 = {    &headCanBtnId,
  358.                             &headDialogId,
  359.                             &MJ_DBUTTONL40,
  360.                             OFFSET(DBUTTONL40),
  361.                             MS_NONE
  362.                         } ;
  363. static DBUTTONL40    d020d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  364.                              436, 358, 497, 381,10, 4, 8,
  365.                             MS_PANELL40 | MS_FRAMEL40,
  366.                             headCanchk,
  367.                             0x0000
  368.                         } ;
  369.  
  370. /* headMesId[0] */
  371.  
  372. static MMIPACKET d021 = {    &headMesId[0],
  373.                             &headDialogId,
  374.                             &MJ_MSGL40,
  375.                             OFFSET(MSGL40),
  376.                             MS_NONE
  377.                         } ;
  378. static MSGL40    d021d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  379.                              153, 361, 196, 378, 8,15, 8,
  380.                             MS_NONEL40,
  381.                             "実  行",
  382.                                1,  12,  12,
  383.                             MS_NONEL40,
  384.                                0,   0
  385.                         } ;
  386.  
  387. /* headMesId[1] */
  388.  
  389. static MMIPACKET d022 = {    &headMesId[1],
  390.                             &headDialogId,
  391.                             &MJ_MSGL40,
  392.                             OFFSET(MSGL40),
  393.                             MS_NONE
  394.                         } ;
  395. static MSGL40    d022d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  396.                              222, 361, 268, 378, 8,15, 8,
  397.                             MS_NONEL40,
  398.                             "再  生",
  399.                                1,  12,  12,
  400.                             MS_NONEL40,
  401.                                0,   0
  402.                         } ;
  403.  
  404. /* headMesId[2] */
  405.  
  406. static MMIPACKET d023 = {    &headMesId[2],
  407.                             &headDialogId,
  408.                             &MJ_MSGL40,
  409.                             OFFSET(MSGL40),
  410.                             MS_NONE
  411.                         } ;
  412. static MSGL40    d023d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  413.                              290, 361, 341, 378, 8,15, 8,
  414.                             MS_NONEL40,
  415.                             "アンドゥ",
  416.                                1,  12,  12,
  417.                             MS_NONEL40,
  418.                                0,   0
  419.                         } ;
  420.  
  421. /* headMesId[4] */
  422.  
  423. static MMIPACKET d024 = {    &headMesId[4],
  424.                             &headDialogId,
  425.                             &MJ_MSGL40,
  426.                             OFFSET(MSGL40),
  427.                             MS_NONE
  428.                         } ;
  429. static MSGL40    d024d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  430.                              445, 361, 489, 378, 8,15, 8,
  431.                             MS_NONEL40,
  432.                             "取  消",
  433.                                1,  12,  12,
  434.                             MS_NONEL40,
  435.                                0,   0
  436.                         } ;
  437.  
  438. /* headInfBtnId */
  439.  
  440. static MMIPACKET d025 = {    &headInfBtnId,
  441.                             &headDialogId,
  442.                             &MJ_DBUTTONL40,
  443.                             OFFSET(DBUTTONL40),
  444.                             MS_NONE
  445.                         } ;
  446. static DBUTTONL40    d025d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  447.                              354, 358, 415, 381, 7, 4, 8,
  448.                             MS_PANELL40 | MS_FRAMEL40,
  449.                             headInf,
  450.                             0x0000
  451.                         } ;
  452.  
  453. /* headMesId[3] */
  454.  
  455. static MMIPACKET d026 = {    &headMesId[3],
  456.                             &headDialogId,
  457.                             &MJ_MSGL40,
  458.                             OFFSET(MSGL40),
  459.                             MS_NONE
  460.                         } ;
  461. static MSGL40    d026d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  462.                              362, 361, 408, 378, 8,15, 8,
  463.                             MS_NONEL40,
  464.                             "情  報",
  465.                                1,  12,  12,
  466.                             MS_NONEL40,
  467.                                0,   0
  468.                         } ;
  469.  
  470.